package com.itheima.demo;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Demo_HsahMap001 {
    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();
        map.put("heima001", "张三");
        map.put("heima002", "李四");
        map.put("heima003", "王五");
        map.put("heima004", "赵六");
        //System.out.println(map);
        Set<String> s = map.keySet();
        for (String key : s) {
            String value = map.get(key);
            System.out.println(key + "=" + value);
        }
    }
}
